<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>H5TestDom-多选</title>
    <script type="text/javascript" src="js/jquery.min.js"></script>
</head>
<body>
你好，这个是H5测试页面

<span></span><br/>
<div></div>
<br/>
<p></p><br/>
<span></span><br/>
<p></p><br/>

<script type="text/javascript">

    window.onload = function () {
       var elemements = document.querySelectorAll("span,div,p");
        for(var i=0;i<elemements.length;i++){
            elemements[i].innerHTML = "<h1>www.baidu.com</h1>";
        }
    }


</script>


</body>
</html>